import request from '@/utils/request'
// 获取
export const getDepartments = () => request({
  url: '/company/department'

})
// 修改
export const upDateDepartments = id => request({
  url: `/company/department/${id}`,
  method: 'put'
})
// 添加
export const addDepartments = data => request({
  url: '/company/department',
  method: 'post',
  data
})
// 删除
export const delDepartments = id => request({
  url: `/company/department/${id}`,
  method: 'delete'
})
